﻿//-----------------------------------------------------------------------
// <copyright file="TagFactory.cs" company="Mulala">
//     Copyright Mulala. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Mulala.Cavan.Domain.MainBoundedContext.DictionaryModule
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public static class TagFactory
    {
        public static Tag CreateTag(
                            TagGroup tagGroup,
                            string text,
                            string value,
                            int parentID,
                            int binaryPosition,
                            DateTime editTime,
                            string editUser)
        {
            Tag tag = new Tag();
            tag.EditTime = editTime;
            tag.EditUser = editUser;
            tag.ParentID = parentID;
            tag.TagGroup = tagGroup;
            tag.Value = value;
            tag.Text = text;
            tag.BinaryPosition = binaryPosition;
            tag.CreateTime = DateTime.Now;

            return tag;
        }
    }
}
